# -*- coding: utf-8 -*-
"""
@Author: Logan
@Date:   2025/6/29 15:36
@Description: 
"""


class LeftMenuBase:

    def level_one_menu(self, menu_name):
        """
        一级菜单
        :param menu_name:
        :return:
        """
        return "//aside[@class='el-aside']//span[text()='" + menu_name + "']/ancestor::li"

    def level_two_menu(self, menu_name):
        """
        二级菜单
        :param menu_name:
        :return:
        """
        return "//aside[@class='el-aside']//span[text()='" + menu_name + "']/ancestor::li[1]"

    def goods_status_tab(self, status_name):
        """
        商品状态切换栏
        :param status_name:
        :return:
        """
        return "//div[@class='el-tabs__nav-scroll']//div[contains(text(),'" + status_name + "')]"
